cod_show_hud

Syntax

native cod_show_hud(id, type = TYPE_HUD, red = 255, green = 255, blue = 255, Float:x = -1.0, Float:y = 0.35, effects = 0, Float:fxTime = 6.0, Float:holdTime = 12.0, Float:fadeInTime = 0.1, Float:fadeOutTime = 0.2, const text[], any:...);

Usage

id
Player index, use 0 to display to all players
type
Display method type, TYPE_HUD or TYPE_DHUD
red
Red component of hudmessage color, value 0 to 255
green
Green component of hudmessage color, value 0 to 255
blue
Blue component of hudmessage color, value 0 to 255
x
Location of the message on the x axis in percent
y
Location of the message on the y axis in percent
effects
Display effect
fxTime
Duration of the effect in seconds
holdTime
Time the message stays on screen in seconds
fadeInTime
Time it takes the message to fully appear (fade-in) in seconds
fadeOutTime
Time it takes the message to fully disappear (fade-out) in seconds
channel
Channel to use on the client
text
Command string
...
Variables to replace formatting parameters in command string

Description

Diplays text in HUD / DHUD to players.

Note

Usage is the same as in set_hudmessage / set_dhudmessage.
https://www.amxmodx.org/api/amxmodx/set_hudmessage

Return

This function has no return value.